﻿@{
}
<section class="container-fluid m15_t">
    <div class="data-wrap case">
        <div class="data-tool clearfix">
            <div class="pull-left form-inline ">
                <a class="btn btn-default btn-sm" data-modal="/Auth/MenuAddOrEdit" data-title="新增" data-width="600" data-height="500"><span class="glyphicon glyphicon-plus"></span> 新增</a>
            </div>
            <div class="pull-right">
                <form class="form-inline" id="formSearch">
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l">名称：</label>
                        <input class="form-control" name="name" type="text" autocomplete="off">
                    </div>

                    <button type="button" class="btn btn-default btn-sm active" id="btnSearch"><span class="glyphicon glyphicon-search"></span> 搜索</button>
                </form>
            </div>
        </div>
        <div class="paging">
        </div>
    </div>
</section>
@section footerScript{
    <script type="text/javascript">
        $(function () {
            Topro.UI.DataAutoHeight();

            doSearch();

            $("#btnSearch").click(function () {
                doSearch();
            });
        });

        function Tip_success(word) {
            Topro.UI.Tip_success(word);
        }

        function doSearch() {
            Topro.UI.Pager(".paging", { ajax: { url: '@Url.Action("MenuQuery", "Auth")' } });
        }
    </script>
}


